package com.atguigu.gulimall.product.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;
import com.atguigu.gulimall.product.vo.Catalog2VO;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author wenhongwu
 * @email 2225404841@qq.com
 * @date 2021-08-30 15:35:04
 */
public interface CategoryService extends IService<CategoryEntity> {

    @Transactional
    void updateCascade(CategoryEntity category);

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    List<CategoryEntity> getLeval1Category();

    Map<String, List<Catalog2VO>> getCatalogJson();

    Long[] findCatalogPath(Long catalogId);

}

